<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="cms" uri="http://cms.gxsoft.com/tags-cms"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>企业违规统计详细</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
</head>


<body>
<table width="100%" border="1">
<c:if test="${!empty list && param.areaCode != ''}">
 <tr>
    <td class="nohover" colspan="10">
    <input class="buttondownload"  type="button" value="下载" onclick="window.location.href='<%=request.getContextPath()%>/EmployerStatistics.do?method=xls&areaCode=${param.areaCode}&type=${param.type}'">
    <input class="buttonbingtu" type="button" value="图例" onclick="window.location.href='<%=request.getContextPath()%>/EmployerStatistics.do?method=pic&areaCode=${param.areaCode}&type=${param.type}'">
    </td>
 </tr>
 <tr>
    <td class="nohover" colspan="10" align="center">
    <b><cms:query value="${param.areaCode}"></cms:query><c:if test="${param.type == '0'}">签定合同人数低于50%</c:if><c:if test="${param.type == '1'}">投保人数低于50%</c:if>的企业统计表</b>
    </td>
 </tr>
  <tr>
    <td width="200" align="center">企业名称</td>
    <td width="60" align="center">企业职工总数</td>
    <td width="60" align="center">其中签定合同人数</td>
    <td width="60" align="center">签订合同人数占总人数的%</td>
    <td width="60" align="center">其中未投保人数</td>
    <td width="60" align="center">投保人数占总人数的%</td>
  </tr>
  <c:forEach items="${list}" var="prod" varStatus="lineInfo">
  <c:set var="empInfoAllWorkNum" scope="page" value="${empInfoAllWorkNum + prod.empInfoAllWorkNum}"/>
  <c:set var="empInfoContractedNum" scope="page" value="${empInfoContractedNum + prod.empInfoContractedNum}"/>
  <c:set var="empInfoNoInsNum" scope="page" value="${empInfoNoInsNum + prod.empInfoNoInsNum}"/>
  <tr <c:if test="${lineInfo.count % 2 == 0}">class="blue"</c:if>>
    <td>${prod.empInfoName}</td>
    <td>${prod.empInfoAllWorkNum}</td>
    <td>${prod.empInfoContractedNum}</td>
    <td><c:if test="${prod.empInfoAllWorkNum != '0'}"><fmt:formatNumber value="${prod.empInfoContractedNum/prod.empInfoAllWorkNum*100}" pattern="#.0#"/></c:if></td>
    <td>${prod.empInfoNoInsNum}</td>
	<td><c:if test="${prod.empInfoAllWorkNum != '0'}"><fmt:formatNumber value="${(prod.empInfoAllWorkNum-prod.empInfoNoInsNum)/prod.empInfoAllWorkNum*100}" pattern="#.0#"/></c:if></td>
  </tr>
  </c:forEach>
  <tr>
    <td>总计</td>
    <td>${empInfoAllWorkNum}</td>
    <td>${empInfoContractedNum}</td>
    <td><c:if test="${empInfoAllWorkNum != '0'}"><fmt:formatNumber value="${empInfoContractedNum/empInfoAllWorkNum*100}" pattern="#.0#"/></c:if></td>
    <td>${empInfoNoInsNum}</td>
	<td><c:if test="${empInfoAllWorkNum != '0'}"><fmt:formatNumber value="${(empInfoAllWorkNum-empInfoNoInsNum)/empInfoAllWorkNum*100}" pattern="#.0#"/></c:if></td>
  </tr>
  <tr>
    <td class="nohover" colspan="6" align="center">&nbsp;
    <form name="pageForm" method="post">
    <input type="hidden" name="type" value="${param.type}"/>
    <input type="hidden" name="areaCode" value="${param.areaCode}"/>
    <c:out value="${foot}" escapeXml="false"/>
    </form>
    </td>
  </tr>
</c:if>
<c:if test="${empty param.areaCode}">
 <tr>
    <td class="nohover" colspan="10" align="center">
    <b>请选择统计条件！</b>
    </td>
 </tr>
</c:if>
<c:if test="${!empty param.areaCode && empty list}">
 <tr>
    <td class="nohover" colspan="10" align="center">
    <b>没有符合要求的数据！</b>
    </td>
 </tr>
</c:if>
</table>
</body>
</html>
